package com.sq.partner.manager.dao;

import java.util.List;

import com.sq.partner.manager.mybatis.model.Salesarea;

public interface SalesareaDao extends BaseDao{
	/**
	 * 插入一条销售区域信息
	 * @param sale
	 * @return
	 * @throws Exception
	 */
	public boolean insert(List<Salesarea> sale) throws Exception;
	/**
	 * 删除一条销售区域信息
	 * @param sale
	 * @return
	 * @throws Exception
	 */
	public boolean delete(Salesarea sale) throws Exception;
	/**
	 * 修改一条销售区域信息
	 * @param sale
	 * @return
	 * @throws Exception
	 */
	public boolean update(Salesarea sale) throws Exception;
	/**
	 * 查询一条销售区域信息（卡id和机构id必须全）
	 * @param sale
	 * @return
	 * @throws Exception
	 */
	public Salesarea query(Salesarea sale) throws Exception;
	/**
	 * 查询多条销售区域
	 * @param sale
	 * @return
	 * @throws Exception
	 */
	public List<Salesarea> queryList(Salesarea sale) throws Exception;
	/**
	 * 查询总数
	 * @param sale
	 * @return
	 * @throws Exception
	 */
	public Integer queryCount(Salesarea sale) throws Exception;

}
